package com.lindroy.gankmvp.mvp.presenter

import com.lindroy.gankmvp.mvp.base.BasePresenter
import com.lindroy.gankmvp.mvp.contract.CategoryContract
import com.lindroy.gankmvp.mvp.model.CategoryModel
import com.lindroy.gankmvp.mvp.model.bean.CategoryResp

/**
 * @author Lin
 * @date 2021/7/2
 * @function
 */
class CategoryPresenter : BasePresenter<CategoryContract.Model, CategoryContract.View>(),
    CategoryContract.Presenter {
    override fun createModel(): CategoryContract.Model = CategoryModel()

    override fun getCategory() {
        //真正发起网络请求的地方
        mModel?.getCategory()
        //将数据传入View层

    }
}